import requests
from bs4 import BeautifulSoup

url = 'https://www.dongchedi.com/'

response = requests.get(url)
content = response.content
#print(response.content)
soup = BeautifulSoup('<head><title class="title_class">The Dormouse story</title></head><body>hello world</body>', 'html.parser')
# print(soup.contents)
for tag in soup.head.contents:
    print(tag.name)
    print(tag['class'])
# print(soup.p.string)
# print(soup.attrs)
# models = soup.find_all('a', {'class': 'series-card_name__3QIlf'})

# for model in models:
# print(model.text)
